<!--#include file="./top.asp" -->
<%
dim rs_rpt_math, str_rpt_math

set rs_rpt_math = server.CreateObject("ADODB.Recordset")
str_rpt_math = "select * from rpt_math where stu_id = '" & request.QueryString("stu_id") & "'"
rs_rpt_math.open str_rpt_math, conn, 1, 3

if rs_rpt_math.eof then
	rs_rpt_math.addnew
	rs_rpt_math.fields("stu_id") = request.QueryString("stu_id")
	rs_rpt_math.update
	rs_rpt_math.close
	rs_rpt_math.open str_rpt_math, conn, 1, 3
end if


for i = 1 to rs_rpt_math.fields.count - 1
	rs_rpt_math.fields(i) = request.Form("rs_rpt_math_" & i)
	'response.Write "rpt_math_" & i & "= " & request.Form("rs_rpt_math_" & i) & "<br />"
next
rs_rpt_math.update
%>



</body>
</html>
<%
rs_rpt_math.close	
set rs_rpt_math = nothing
call CloseConn()
response.Redirect("./rpt_math.asp?stu_id="& request.QueryString("stu_id"))
%>